package com.pig4cloud.pig.village.api.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiResponse;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * app首页展示
 * @author limbray.li
 * @date 2021/7/3
 */
@Data
@ApiModel(value = "AppMainDto", description = "app首页展示")
public class AppMainDto {
	@ApiModelProperty("左侧列表")
	private List<MainPageItem> left;
	private List<MainPageItem> right;
	private List<MainPageMessage> msgTop;
	private List<MainPageMessage> msgBottom;

	public List<MainPageItem> getLeft() {
		if(left == null){
			left = new ArrayList<>();
		}
		return left;
	}

	public List<MainPageItem> getRight() {
		if(right == null){
			right = new ArrayList<>();
		}
		return right;
	}

	public List<MainPageMessage> getMsgTop() {
		if(msgTop == null){
			msgTop = new ArrayList<>();
		}
		return msgTop;
	}

	public List<MainPageMessage> getMsgBottom() {
		if(msgBottom == null){
			msgBottom = new ArrayList<>();
		}
		return msgBottom;
	}
}
